.class abstract Lcom/greystripe/sdk/c;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/greystripe/sdk/DeviceInfo$LocationListener;
.implements Lcom/greystripe/sdk/GSAd;


# instance fields
.field protected a:Z

.field protected b:Z

.field private final c:J

.field private d:Landroid/content/Context;

.field private e:Lcom/greystripe/sdk/aa;

.field private f:Lcom/greystripe/sdk/v;

.field private g:Lcom/greystripe/sdk/r;

.field private h:Ljava/util/ArrayList;

.field private i:Ljava/util/Timer;

.field private j:Lcom/greystripe/sdk/a;

.field private k:Ljava/lang/ref/WeakReference;

.field private l:Z

.field private m:Z

.field private n:Z

.field private o:Z

.field private p:Z

.field private q:Z

.field private r:Lcom/greystripe/sdk/s;

.field private s:Z

.field private t:Z

.field private u:Z

.field private v:I


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 5

    const/4 v2, -0x1

    const/4 v4, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, 0x7530

    iput-wide v0, p0, Lcom/greystripe/sdk/c;->c:J

    new-instance v0, Lcom/greystripe/sdk/v;

    invoke-direct {v0, p0, v4}, Lcom/greystripe/sdk/v;-><init>(Lcom/greystripe/sdk/c;B)V

    iput-object v0, p0, Lcom/greystripe/sdk/c;->f:Lcom/greystripe/sdk/v;

    new-instance v0, Lcom/greystripe/sdk/r;

    invoke-direct {v0, p0, v4}, Lcom/greystripe/sdk/r;-><init>(Lcom/greystripe/sdk/c;B)V

    iput-object v0, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->l:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->m:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->n:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->o:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->p:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->q:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->s:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->t:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->u:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->a:Z

    iput-boolean v4, p0, Lcom/greystripe/sdk/c;->b:Z

    iput v2, p0, Lcom/greystripe/sdk/c;->v:I

    invoke-static {}, Lcom/greystripe/sdk/bm;->a()V

    iput v2, p0, Lcom/greystripe/sdk/c;->v:I

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {p1}, Lcom/greystripe/sdk/bj;->a(Landroid/content/Context;)V

    invoke-static {p1}, Lcom/greystripe/sdk/DeviceInfo;->getDeviceInfoController(Landroid/content/Context;)Lcom/greystripe/sdk/DeviceInfo;

    move-result-object v0

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->b()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {v0}, Lcom/greystripe/sdk/bj;->a(Ljava/lang/String;)V

    :cond_0
    const-string v0, "guid"

    invoke-static {}, Lcom/greystripe/sdk/bj;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/greystripe/sdk/bk;->AD_SERVER_URL:Lcom/greystripe/sdk/bk;

    invoke-static {v0}, Lcom/greystripe/sdk/bj;->b(Lcom/greystripe/sdk/bk;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "http://adsx.greystripe.com/openx/www/delivery/ia.php"

    invoke-static {v0}, Lcom/greystripe/sdk/bj;->b(Ljava/lang/String;)V

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "adServerUrl: "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/greystripe/sdk/bj;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    new-instance v0, Lcom/greystripe/sdk/aa;

    iget-object v1, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    new-instance v2, Lcom/greystripe/sdk/p;

    invoke-direct {v2, p0, v4}, Lcom/greystripe/sdk/p;-><init>(Lcom/greystripe/sdk/c;B)V

    invoke-direct {v0, v1, v2}, Lcom/greystripe/sdk/aa;-><init>(Landroid/content/Context;Lcom/greystripe/sdk/ag;)V

    iput-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    iget-object v0, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/greystripe/sdk/DeviceInfo;->getDeviceInfoController(Landroid/content/Context;)Lcom/greystripe/sdk/DeviceInfo;

    move-result-object v0

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    new-instance v2, Lcom/greystripe/sdk/m;

    invoke-direct {v2, p0, v4}, Lcom/greystripe/sdk/m;-><init>(Lcom/greystripe/sdk/c;B)V

    const-string v3, "AdState"

    invoke-virtual {v1, v2, v3}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Lcom/greystripe/sdk/s;

    invoke-direct {v1, p0, v4}, Lcom/greystripe/sdk/s;-><init>(Lcom/greystripe/sdk/c;B)V

    iput-object v1, p0, Lcom/greystripe/sdk/c;->r:Lcom/greystripe/sdk/s;

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    iget-object v2, p0, Lcom/greystripe/sdk/c;->r:Lcom/greystripe/sdk/s;

    const-string v3, "MraidController"

    invoke-virtual {v1, v2, v3}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    const-string v2, "DeviceInfo"

    invoke-virtual {v1, v0, v2}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    iget-object v2, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {v2}, Lcom/greystripe/sdk/bh;->a(Landroid/content/Context;)Lcom/greystripe/sdk/bh;

    move-result-object v2

    const-string v3, "NetworkStatus"

    invoke-virtual {v1, v2, v3}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Lcom/greystripe/sdk/a;

    iget-object v2, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    iget-object v3, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    invoke-direct {v1, v2, v3}, Lcom/greystripe/sdk/a;-><init>(Landroid/content/Context;Lcom/greystripe/sdk/aa;)V

    iput-object v1, p0, Lcom/greystripe/sdk/c;->j:Lcom/greystripe/sdk/a;

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    iget-object v2, p0, Lcom/greystripe/sdk/c;->j:Lcom/greystripe/sdk/a;

    const-string v3, "Accelerometer"

    invoke-virtual {v1, v2, v3}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v1, "hid"

    const-string v2, "SHA-1"

    invoke-virtual {v0, v2}, Lcom/greystripe/sdk/DeviceInfo;->getHashedAndroidId(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "mhid"

    const-string v2, "MD5"

    invoke-virtual {v0, v2}, Lcom/greystripe/sdk/DeviceInfo;->getHashedAndroidId(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "port"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "land"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "asdk-"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/greystripe/sdk/GSSdkInfo;->getVersion()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->getAndroidVersion()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->hasTelephony()Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "phone"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_2
    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->isTablet()Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "tablet"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_3
    const-string v1, "android.permission.CAMERA"

    iget-object v2, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "camera"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_4
    const-string v1, "android.permission.WRITE_CONTACTS"

    iget-object v2, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_5

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "contacts"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_5
    const-string v1, "android.permission.WRITE_CALENDAR"

    iget-object v2, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_6

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v2, "calendar"

    invoke-virtual {v1, v2}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_6
    const-string v1, "lang"

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->getLanguage()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "screen_size"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->getWidthPixels()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "x"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->getHeightPixels()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "res"

    invoke-virtual {v0}, Lcom/greystripe/sdk/DeviceInfo;->getDensity()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Float;->toString(F)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v1, v0}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {p0}, Lcom/greystripe/sdk/DeviceInfo;->addLocationListener(Lcom/greystripe/sdk/DeviceInfo$LocationListener;)V

    return-void
.end method

.method static synthetic A(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->t:Z

    return v0
.end method

.method static synthetic a(Lcom/greystripe/sdk/c;I)I
    .locals 0

    iput p1, p0, Lcom/greystripe/sdk/c;->v:I

    return p1
.end method

.method static synthetic a(Lcom/greystripe/sdk/c;)Lcom/greystripe/sdk/aa;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    return-object v0
.end method

.method static synthetic a(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAdErrorCode;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->p()V

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->k()V

    invoke-virtual {p0, p1}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    return-void
.end method

.method static synthetic a(Lcom/greystripe/sdk/c;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/greystripe/sdk/c;->m:Z

    return p1
.end method

.method static synthetic b(Lcom/greystripe/sdk/c;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/greystripe/sdk/c;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/greystripe/sdk/c;->s:Z

    return p1
.end method

.method static synthetic c(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->l:Z

    return v0
.end method

.method static synthetic d(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->u:Z

    return v0
.end method

.method static synthetic e(Lcom/greystripe/sdk/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->k()V

    return-void
.end method

.method static synthetic f(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->t:Z

    return v0
.end method

.method static synthetic g(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->p:Z

    return v0
.end method

.method static synthetic h(Lcom/greystripe/sdk/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->n()V

    return-void
.end method

.method static synthetic i(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->n:Z

    return v0
.end method

.method static synthetic j(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->o:Z

    return v0
.end method

.method private k()V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->n:Z

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->m:Z

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->l:Z

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->o:Z

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->b:Z

    return-void
.end method

.method static synthetic k(Lcom/greystripe/sdk/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->o()V

    return-void
.end method

.method private l()V
    .locals 1

    new-instance v0, Lcom/greystripe/sdk/d;

    invoke-direct {v0, p0}, Lcom/greystripe/sdk/d;-><init>(Lcom/greystripe/sdk/c;)V

    invoke-static {v0}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    return-void
.end method

.method static synthetic l(Lcom/greystripe/sdk/c;)V
    .locals 4

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->q:Z

    if-nez v0, :cond_0

    invoke-static {}, Lcom/greystripe/sdk/bj;->d()J

    move-result-wide v0

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "STARTING READY timer with time "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-static {v2, v3}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    new-instance v2, Ljava/util/Timer;

    invoke-direct {v2}, Ljava/util/Timer;-><init>()V

    iput-object v2, p0, Lcom/greystripe/sdk/c;->i:Ljava/util/Timer;

    iget-object v2, p0, Lcom/greystripe/sdk/c;->i:Ljava/util/Timer;

    new-instance v3, Lcom/greystripe/sdk/l;

    invoke-direct {v3, p0}, Lcom/greystripe/sdk/l;-><init>(Lcom/greystripe/sdk/c;)V

    invoke-virtual {v2, v3, v0, v1}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :cond_0
    return-void
.end method

.method private m()Lcom/greystripe/sdk/GSAd;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->k:Ljava/lang/ref/WeakReference;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/greystripe/sdk/c;->k:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/greystripe/sdk/c;->k:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/greystripe/sdk/GSAd;

    move-object p0, v0

    :cond_0
    return-object p0
.end method

.method static synthetic m(Lcom/greystripe/sdk/c;)V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/j;

    invoke-direct {v1, p0, v0}, Lcom/greystripe/sdk/j;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method private n()V
    .locals 2

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->t:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/greystripe/sdk/c;->i()V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/f;

    invoke-direct {v1, p0, v0}, Lcom/greystripe/sdk/f;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method static synthetic n(Lcom/greystripe/sdk/c;)V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/k;

    invoke-direct {v1, p0, v0}, Lcom/greystripe/sdk/k;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method static synthetic o(Lcom/greystripe/sdk/c;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    return-object v0
.end method

.method private declared-synchronized o()V
    .locals 2

    monitor-enter p0

    :try_start_0
    const-string v0, "AdModel#onDisplay"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->o:Z

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->l:Z

    if-eqz v0, :cond_1

    const-string v0, "Was fetching an ad when tried to notify ondisplay."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->n:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->p:Z

    const-string v0, "DISPLAY DISPLAY DISPLAY"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->k()V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    const-string v1, "EventHandler.broadcastEvent(\'displayed\');"

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/aa;->b(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized p()V
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/greystripe/sdk/c;->i:Ljava/util/Timer;

    if-eqz v0, :cond_0

    const-string v0, "STOPPING READY timer."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->i:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/greystripe/sdk/c;->i:Ljava/util/Timer;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic p(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->u:Z

    return v0
.end method

.method static synthetic q(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->n:Z

    return v0
.end method

.method static synthetic r(Lcom/greystripe/sdk/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->p()V

    return-void
.end method

.method static synthetic s(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->m:Z

    return v0
.end method

.method static synthetic t(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->p:Z

    return v0
.end method

.method static synthetic u(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->o:Z

    return v0
.end method

.method static synthetic v(Lcom/greystripe/sdk/c;)V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/i;

    invoke-direct {v1, p0, v0}, Lcom/greystripe/sdk/i;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method static synthetic w(Lcom/greystripe/sdk/c;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->s:Z

    return v0
.end method

.method static synthetic x(Lcom/greystripe/sdk/c;)V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/h;

    invoke-direct {v1, p0, v0}, Lcom/greystripe/sdk/h;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method static synthetic y(Lcom/greystripe/sdk/c;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/c;->q:Z

    return v0
.end method

.method static synthetic z(Lcom/greystripe/sdk/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->l()V

    return-void
.end method


# virtual methods
.method abstract a()V
.end method

.method protected final a(Lcom/greystripe/sdk/GSAdErrorCode;)V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0}, Lcom/greystripe/sdk/c;->m()Lcom/greystripe/sdk/GSAd;

    move-result-object v0

    new-instance v1, Lcom/greystripe/sdk/g;

    invoke-direct {v1, p0, v0, p1}, Lcom/greystripe/sdk/g;-><init>(Lcom/greystripe/sdk/c;Lcom/greystripe/sdk/GSAd;Lcom/greystripe/sdk/GSAdErrorCode;)V

    invoke-static {v1}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method final a(Lcom/greystripe/sdk/am;)V
    .locals 1

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/greystripe/sdk/c;->k:Ljava/lang/ref/WeakReference;

    return-void
.end method

.method protected final a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/greystripe/sdk/c;->f:Lcom/greystripe/sdk/v;

    invoke-virtual {v0, p1, p2}, Lcom/greystripe/sdk/v;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method public addListener(Lcom/greystripe/sdk/GSAdListener;)V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    :cond_0
    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method abstract b()V
.end method

.method abstract c()V
.end method

.method final d()V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->j:Lcom/greystripe/sdk/a;

    invoke-virtual {v0}, Lcom/greystripe/sdk/a;->stop()V

    return-void
.end method

.method final e()Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->p:Z

    return v0
.end method

.method final f()V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    const-string v1, "EventHandler.broadcastEvent(\'imagedidsave\');"

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/aa;->b(Ljava/lang/String;)V

    return-void
.end method

.method protected final g()V
    .locals 2

    const-string v0, "An ad is cached and ready to display. Cannot request another ad at this time."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->n()V

    return-void
.end method

.method public getId()I
    .locals 1

    iget v0, p0, Lcom/greystripe/sdk/c;->v:I

    return v0
.end method

.method protected declared-synchronized h()V
    .locals 6

    const/4 v5, -0x1

    const/4 v1, 0x1

    const/4 v0, 0x0

    monitor-enter p0

    :try_start_0
    const-string v2, "requestAd"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-static {v2, v3}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    invoke-static {}, Lcom/greystripe/sdk/bj;->g()Z

    move-result v2

    if-eqz v2, :cond_0

    :goto_0
    if-nez v0, :cond_3

    const-string v0, "Please de-integrate the Greystripe SDK from your app. Its ad requests are no longer being honored."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->e(Ljava/lang/String;[Ljava/lang/Object;)V

    sget-object v0, Lcom/greystripe/sdk/GSAdErrorCode;->UNEXPECTED_ERROR:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_1
    monitor-exit p0

    return-void

    :cond_0
    :try_start_1
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/greystripe/sdk/bj;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/16 v4, 0x3f

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/greystripe/sdk/c;->f:Lcom/greystripe/sdk/v;

    invoke-virtual {v4}, Lcom/greystripe/sdk/v;->a()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/webkit/CookieManager;->getCookie(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    const-string v3, "SNOOKI"

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-ne v2, v5, :cond_2

    move v0, v1

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/greystripe/sdk/bj;->f()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_3
    :try_start_2
    sget-object v0, Lcom/greystripe/sdk/bk;->GUID:Lcom/greystripe/sdk/bk;

    invoke-static {v0}, Lcom/greystripe/sdk/bj;->b(Lcom/greystripe/sdk/bk;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string v0, "Missing application identifier GUID."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->e(Ljava/lang/String;[Ljava/lang/Object;)V

    sget-object v0, Lcom/greystripe/sdk/GSAdErrorCode;->INVALID_APPLICATION_IDENTIFIER:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    goto :goto_1

    :cond_4
    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->n:Z

    if-eqz v0, :cond_5

    invoke-virtual {p0}, Lcom/greystripe/sdk/c;->g()V

    goto :goto_1

    :cond_5
    iget-boolean v0, p0, Lcom/greystripe/sdk/c;->l:Z

    if-eqz v0, :cond_6

    const-string v0, "Currently fetching an ad. Cannot request another ad at this time."

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_1

    :cond_6
    invoke-direct {p0}, Lcom/greystripe/sdk/c;->p()V

    const/4 v0, -0x1

    iput v0, p0, Lcom/greystripe/sdk/c;->v:I

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->k()V

    invoke-direct {p0}, Lcom/greystripe/sdk/c;->l()V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/greystripe/sdk/bh;->a(Landroid/content/Context;)Lcom/greystripe/sdk/bh;

    move-result-object v0

    invoke-virtual {v0}, Lcom/greystripe/sdk/bh;->a()Z

    move-result v1

    if-nez v1, :cond_7

    sget-object v0, Lcom/greystripe/sdk/GSAdErrorCode;->NO_NETWORK:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    goto/16 :goto_1

    :cond_7
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/greystripe/sdk/c;->l:Z

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/greystripe/sdk/c;->p:Z

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/greystripe/sdk/c;->q:Z

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/greystripe/sdk/c;->t:Z

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/greystripe/sdk/c;->u:Z

    invoke-virtual {v0}, Lcom/greystripe/sdk/bh;->b()Z

    move-result v0

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v1, "wifi"

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/r;->add(Ljava/lang/Object;)Z

    :cond_8
    :goto_2
    invoke-static {}, Lcom/greystripe/sdk/DeviceInfo;->a()Landroid/location/Location;

    move-result-object v0

    if-eqz v0, :cond_9

    const-string v1, "lat"

    invoke-virtual {v0}, Landroid/location/Location;->getLatitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "long"

    invoke-virtual {v0}, Landroid/location/Location;->getLongitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "alt"

    invoke-virtual {v0}, Landroid/location/Location;->getAltitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "gpsacy"

    invoke-virtual {v0}, Landroid/location/Location;->getAccuracy()F

    move-result v2

    invoke-static {v2}, Ljava/lang/Float;->toString(F)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v1, v2}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "gpstime"

    invoke-virtual {v0}, Landroid/location/Location;->getTime()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v1, v0}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_9
    const-string v0, "source"

    iget-object v1, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    invoke-virtual {v1}, Lcom/greystripe/sdk/r;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/greystripe/sdk/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    invoke-virtual {v0}, Lcom/greystripe/sdk/aa;->stopLoading()V

    iget-object v0, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {v0}, Landroid/webkit/WebViewDatabase;->getInstance(Landroid/content/Context;)Landroid/webkit/WebViewDatabase;

    move-result-object v0

    if-nez v0, :cond_b

    sget-object v0, Lcom/greystripe/sdk/GSAdErrorCode;->UNEXPECTED_ERROR:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    goto/16 :goto_1

    :cond_a
    iget-object v0, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v1, "wifi"

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/r;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/greystripe/sdk/c;->g:Lcom/greystripe/sdk/r;

    const-string v1, "wifi"

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/r;->remove(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_b
    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/greystripe/sdk/bj;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const/16 v2, 0x3f

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/greystripe/sdk/c;->f:Lcom/greystripe/sdk/v;

    invoke-virtual {v2}, Lcom/greystripe/sdk/v;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/aa;->a(Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto/16 :goto_1
.end method

.method protected final i()V
    .locals 1

    new-instance v0, Lcom/greystripe/sdk/e;

    invoke-direct {v0, p0}, Lcom/greystripe/sdk/e;-><init>(Lcom/greystripe/sdk/c;)V

    invoke-static {v0}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public isAdReady()Z
    .locals 3

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/greystripe/sdk/c;->d:Landroid/content/Context;

    invoke-static {v1}, Lcom/greystripe/sdk/bh;->a(Landroid/content/Context;)Lcom/greystripe/sdk/bh;

    move-result-object v1

    invoke-virtual {v1}, Lcom/greystripe/sdk/bh;->a()Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "Network status: not connected"

    new-array v2, v0, [Ljava/lang/Object;

    invoke-static {v1, v2}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-boolean v1, p0, Lcom/greystripe/sdk/c;->m:Z

    if-eqz v1, :cond_0

    iget-boolean v1, p0, Lcom/greystripe/sdk/c;->n:Z

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method protected final j()Lcom/greystripe/sdk/aa;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    return-object v0
.end method

.method public onLocationUpdated(Landroid/location/Location;)V
    .locals 3

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "LocationHandler.updateLocation("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/location/Location;->getLatitude()D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/location/Location;->getLongitude()D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/location/Location;->getAltitude()D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/location/Location;->getAccuracy()F

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/location/Location;->getTime()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ");"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/greystripe/sdk/c;->e:Lcom/greystripe/sdk/aa;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/greystripe/sdk/aa;->b(Ljava/lang/String;)V

    return-void
.end method

.method public removeListener(Lcom/greystripe/sdk/GSAdListener;)V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/greystripe/sdk/c;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method
